/*
Theme Name: Omni Medical
Theme URI: https://omnimedical.com
Author: Omni Medical LLC
Author URI: https://omnimedical.com
Description: A single-page professional theme for Omni Medical, a medical writing practice serving pharmaceutical medical affairs and medical communications teams. Features a blue gradient hero, about section, a four-category services section, and a contact form with email + dashboard storage.
Version: 3.0.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: omni-medical
*/


  :root{
    --ink: #0A2140;
    --blue-deep: #0F3263;
    --blue: #1B4A8C;
    --blue-bright: #2D6DC7;
    --blue-sky: #6F9AD6;
    --blue-pale: #A9CAF7;
    --tint: #EAF1F6;
    --paper: #FBFBF9;
    --slate: #46566A;
    --rule: #D6DEE8;
  }
  *{ box-sizing: border-box; margin:0; padding:0; }
  html{ scroll-behavior: smooth; height: 100%; }
  body{
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--paper);
    color: var(--slate);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  body > .site-footer{ margin-top: auto; }
  h1, h2, .serif{ font-family: 'Inter', -apple-system, sans-serif; }
  a{ color: var(--blue); text-decoration: none; }
  img{ max-width:100%; display:block; }

  .wrap{
    max-width: 960px;
    margin: 0 auto;
    padding: 0 28px;
  }

  /* ---- Skip link (accessibility) ---- */
  .skip-link{
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    color: var(--ink);
    padding: 10px 16px;
    z-index: 9999;
  }
  .skip-link:focus{ left: 10px; top: 10px; }

  /* ---- Header / Hero with gradient mesh ---- */
  .site-header{
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 64px 0 130px;
    background: linear-gradient(155deg, #050F1C 0%, #0F284C 16%, #173969 32%, #2B5187 48%, #486EA3 64%, #7495C2 80%, #AFC1DB 94%, #DFE7F2 100%);
  }
  .seam-line-header{
    position: relative;
    height: 2.5px;
    background: #fff;
    box-shadow: 0 0 14px 2px rgba(255,255,255,0.65);
    z-index: 3;
  }
  .site-header::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(ellipse 1100px 700px at 5% -20%, rgba(216,223,240,0.45), transparent 60%),
      radial-gradient(ellipse 900px 600px at 110% 15%, rgba(107,134,194,0.45), transparent 55%),
      radial-gradient(ellipse 700px 500px at 50% 120%, rgba(5,13,28,0.55), transparent 60%);
    pointer-events: none;
  }
  .site-header::after{
    content:"";
    position:absolute;
    inset:0;
    background-image:
      linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 900px 500px at 30% 15%, rgba(0,0,0,0.6), transparent 70%);
    pointer-events: none;
  }
  .site-header .wrap{ position: relative; z-index: 2; }

  .masthead{
    display:flex;
    align-items:center;
    gap: 16px;
    margin-bottom: 44px;
  }
  .mark{
    width: 48px; height:48px;
    border-radius: 50%;
    display:flex; align-items:center; justify-content:center;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 19px;
    font-weight: 600;
    flex-shrink:0;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-sky));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 8px 24px -6px rgba(91,151,236,0.55);
    color: #fff;
    overflow: hidden;
  }
  .mark img{
    width:100%; height:100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .brandname{
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
  }
  .brandname img{
    max-height: 28px;
    width: auto;
    display: block;
  }
  .hero-rule{
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue-bright), var(--blue-sky));
    margin-bottom: 26px;
  }
  h1.title{
    font-size: clamp(28px, 4.2vw, 50px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    max-width: none;
    white-space: nowrap;
  }
  .title .accent{
    background: linear-gradient(95deg, #BFD8FA, var(--blue-sky) 55%, #EAF6FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .tagline{
    font-size: 18.5px;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    max-width: 560px;
  }
  .tagline .cite{
    color: #BFD8FA;
    font-style: italic;
    font-family: 'Inter', -apple-system, sans-serif;
  }
  .hero-cta{
    position: relative;
    margin-top: 36px;
    display:inline-flex;
    align-items:center;
    gap: 10px;
    background: linear-gradient(110deg, #173969 0%, #2B5187 35%, #486EA3 70%, #6F9AD6 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-weight: 700;
    font-size: 15.5px;
    padding: 14.5px 30.5px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.85), 0 12px 28px -10px rgba(27,100,201,0.35), 0 0 18px rgba(79,145,238,0.2);
    transition: box-shadow 0.18s ease;
    overflow: hidden;
    z-index: 0;
  }
  .hero-cta::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #6F9AD6 0%, #486EA3 35%, #2B5187 70%, #173969 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  .hero-cta:hover{
    box-shadow: 0 0 0 1.5px #fff, 0 14px 32px -10px rgba(27,100,201,0.45), 0 0 22px rgba(79,145,238,0.3);
  }
  .hero-cta:hover::before{
    opacity: 1;
  }

  /* ---- About ---- */
  .about-section{
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
  }
  .about-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(ellipse 700px 400px at 10% 0%, rgba(91,151,236,0.10), transparent 60%),
      radial-gradient(ellipse 600px 400px at 100% 100%, rgba(27,74,140,0.07), transparent 60%),
      var(--tint);
    z-index:-1;
  }
  .eyebrow{
    font-size: 38px;
    letter-spacing: -0.01em;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--blue), var(--blue-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display:inline-block;
    line-height: 1.2;
  }
  .expertise-heading{
    font-size: 22px;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 8px;
    max-width: 540px;
    line-height: 1.3;
  }
  .about-body{
    display:grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .expertise-subheading{
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 17px;
    color: var(--blue-bright);
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.4;
  }
  .about-body p{
    font-size: 16.5px;
    color: var(--slate);
    margin-bottom: 16px;
  }
  .about-body p:last-child{ margin-bottom:0; }

  .credentials{
    position: relative;
    background: linear-gradient(165deg, #ffffff, var(--tint));
    border: 1px solid #DCE4F0;
    border-radius: 10px;
    padding: 26px 26px 24px;
    font-size: 14.5px;
    box-shadow: 0 16px 40px -18px rgba(15,58,99,0.28);
  }
  .credentials-heading{
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #DCE4F0;
  }
  .credentials::before{
    content:"";
    position:absolute;
    top:0; left:0; right:0;
    height: 4px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, var(--blue), var(--blue-sky));
  }
  .credentials dt{
    display:flex; align-items:center; gap:8px;
    font-weight: 700;
    color: var(--ink);
    font-size: 11.5px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 18px;
  }
  .credentials dt:first-child{ margin-top:0; }
  .credentials dt::before{
    content:"";
    width: 7px; height:7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-sky));
    flex-shrink:0;
  }
  .credentials dd{
    color: var(--slate);
    margin-top: 5px;
    padding-left: 15px;
  }

  /* ---- Services ---- */
  .services-section{
    padding: 76px 0 40px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
  }
  .services-section h2{
    font-size: 22px;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 12px;
    max-width: 640px;
    line-height: 1.3;
  }
  .services-intro{
    font-size: 16.5px;
    color: var(--slate);
    max-width: 640px;
    margin-bottom: 30px;
  }
  .category-block{
    padding: 56px 0;
    border-top: 1px solid var(--rule);
  }
  .category-block:last-child{
    border-bottom: 1px solid var(--rule);
  }
  .category-label{
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
  }
  .category-block h3{
    font-size: 17px;
    color: var(--blue-bright);
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.01em;
    margin-bottom: 14px;
    max-width: 580px;
  }
  .category-block > p{
    font-size: 16px;
    color: var(--slate);
    max-width: 580px;
    margin-bottom: 32px;
  }
  .item-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }
  .service-item{
    padding-left: 16px;
    border-left: 2px solid var(--blue-pale);
  }
  .service-item-term{
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .service-item-desc{
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
  }
  @media (max-width: 700px){
    .item-grid{ grid-template-columns: 1fr; }
  }

  /* ---- Contact ---- */
  .contact-section{
    position: relative;
    padding: 76px 0 88px;
    overflow: hidden;
  }
  .contact-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(ellipse 700px 400px at 90% 0%, rgba(91,151,236,0.10), transparent 60%),
      radial-gradient(ellipse 600px 400px at 0% 100%, rgba(27,74,140,0.07), transparent 60%),
      var(--tint);
    z-index:-1;
  }
  .contact-section h2{
    font-size: 22px;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .contact-sub{
    font-size: 16px;
    color: var(--slate);
    margin-bottom: 34px;
    max-width: 480px;
  }
  .contact-form{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    max-width: 660px;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 24px 60px -24px rgba(15,58,99,0.22);
    border: 1px solid #E3E9F1;
  }
  .field-full{ grid-column: 1 / -1; }
  .contact-form label{
    display:block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin-bottom: 7px;
  }
  .contact-form input, .contact-form textarea{
    width:100%;
    border: 1px solid var(--rule);
    background: #fff;
    border-radius: 6px;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .contact-form input:focus, .contact-form textarea:focus{
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(45,109,199,0.15);
  }
  .contact-form textarea{ resize: vertical; min-height: 110px; }
  .contact-form button{
    position: relative;
    grid-column: 1 / -1;
    justify-self: start;
    background: linear-gradient(110deg, #173969 0%, #2B5187 35%, #486EA3 70%, #6F9AD6 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: none;
    padding: 14.5px 36.5px;
    font-size: 15.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
    margin-top: 6px;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.85), 0 0 0 3.5px rgba(27,100,201,0.1), 0 12px 26px -10px rgba(27,100,201,0.3), 0 0 16px rgba(79,145,238,0.18);
    overflow: hidden;
    z-index: 0;
  }
  .contact-form button::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #6F9AD6 0%, #486EA3 35%, #2B5187 70%, #173969 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  .contact-form button:hover{
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 3.5px rgba(27,100,201,0.15), 0 14px 30px -10px rgba(27,100,201,0.4), 0 0 20px rgba(79,145,238,0.25);
  }
  .contact-form button:hover::before{
    opacity: 1;
  }
  .contact-form button:focus-visible, a:focus-visible, .contact-form input:focus-visible, .contact-form textarea:focus-visible{
    outline: 2px solid var(--blue-bright);
    outline-offset: 2px;
  }

  /* ---- Form success / error notices ---- */
  .form-notice{
    grid-column: 1 / -1;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14.5px;
    margin-bottom: 6px;
  }
  .form-notice.success{
    background: #E8F6EE;
    color: #1B6E3C;
    border: 1px solid #BFE6CC;
  }
  .form-notice.error{
    background: #FDEAEA;
    color: #9B2C2C;
    border: 1px solid #F3C2C2;
  }

  /* ---- Thank-you state ---- */
  .thank-you{
    max-width: 560px;
    background: #fff;
    padding: 40px 36px;
    border-radius: 12px;
    box-shadow: 0 24px 60px -24px rgba(15,58,99,0.22);
    border: 1px solid #E3E9F1;
    text-align: left;
  }
  .thank-you h2{
    font-size: 26px;
    color: var(--ink);
    margin-bottom: 12px;
  }
  .thank-you p{
    font-size: 16px;
    color: var(--slate);
    margin-bottom: 18px;
  }
  .thank-you a.back-link{
    font-weight: 600;
    color: var(--blue-bright);
  }

  /* ---- Footer ---- */
  .site-footer{
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #050F1C 0%, #0F284C 16%, #173969 32%, #2B5187 48%, #486EA3 64%, #7495C2 80%, #AFC1DB 94%, #DFE7F2 100%);
    padding: 34px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
  }
  .seam-line-footer{
    position: relative;
    height: 2.5px;
    background: #fff;
    box-shadow: 0 0 14px 2px rgba(255,255,255,0.65);
    z-index: 3;
  }
  .site-footer::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(ellipse 800px 350px at 90% 50%, rgba(116,149,194,0.5), transparent 65%),
      radial-gradient(ellipse 500px 300px at 0% 0%, rgba(5,15,28,0.5), transparent 60%);
    pointer-events: none;
  }
  .site-footer .wrap{
    position: relative;
    z-index: 1;
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  @media (max-width: 640px){
    .site-header{ padding: 48px 0 64px; }
    .about-section, .contact-section, .services-section{ padding: 52px 0; }
    .about-body{ grid-template-columns: 1fr; gap: 28px; }
    .contact-form{ grid-template-columns: 1fr; padding: 24px; }
    .site-footer .wrap{ flex-direction: column; }
    h1.title{ white-space: normal; font-size: 32px; }
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
  }

  /* ---- Back to top tab ---- */
  .btt-tab{
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    width: 24px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    border: none;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    gap: 8px;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    box-shadow: -3px 0 14px rgba(10,33,64,0.35), inset 0 0 0 1px rgba(255,255,255,0.10);
  }
  .btt-tab::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, #173969 0%, #2B5187 35%, #486EA3 70%, #6F9AD6 100%);
    transition: opacity 0.28s ease;
    opacity: 1;
  }
  .btt-tab::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, #6F9AD6 0%, #486EA3 35%, #2B5187 70%, #173969 100%);
    transition: opacity 0.28s ease;
    opacity: 0;
  }
  .btt-tab.visible{
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
  .btt-tab:hover::before{ opacity: 0; }
  .btt-tab:hover::after{ opacity: 1; }
  .btt-tab svg, .btt-tab-label{ position: relative; z-index: 1; }
  .btt-tab svg{ width: 12px; height: 12px; flex-shrink: 0; color: #fff; }
  .btt-tab-label{
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: rgba(255,255,255,0.75);
    line-height: 1;
  }
