/*
Theme Name: OceanWorld Shipbuilding
Theme URI: https://oceanworldshipbuilding.com
Author: SV Digital
Description: Custom theme for OceanWorld Shipbuilding. The home page uses the original "Coming Soon" design with the waiting-list form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: oceanworld-shipbuilding
*/

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --gold: #C9A96E;
    --gold-light: #e0c48a;
    --white: #ffffff;
    --dark: #0a0c10;
    --font-header: 'Libre Baskerville', 'Baskerville Old Face', Baskerville, Georgia, serif;
    --font-body: -apple-system, 'Inter', 'Inter', BlinkMacSystemFont, 'Inter', sans-serif;
  }



  html, body {
    height: 100%;
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
  }

  /* ─── HERO ─────────────────────────────────────────── */
  .hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

@media(max-width: 600px){
   .hero-bg{
            background-image: url('assets/images/mob-bg.png') !important;
  
   }
   .hero{
    padding-right: 10px !important;
    padding-left: 10px !important;
   }
   .brand-name{
    max-width: 60% !important;
    margin: auto !important;
   }   .brand-name img{
    max-width: 100% !important;
   }
   .contact-value{
    font-size: 14px !important;
   }
   .contact-row{
    justify-content: left !important;
   }
}

@media(min-width:1100px){
    .coming-soon{
        margin-bottom: -180px;
    }
}

  .hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
      transform: scale(1.04);
    animation: slowZoom 18s ease-out forwards;
    
    background-image: url('assets/images/bg.png');
        background-size: cover;
    background-repeat: no-repeat;
    background-position: left;
    
  }

  @keyframes slowZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.00); }
  }

  /* ─── BRAND ─────────────────────────────────────────── */
  .brand {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 48px;
    gap: 14px;
    animation: fadeDown 1.2s ease both;
  }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .brand-logo { width: 88px; height: 88px; }

  .brand-name {
    font-family: var(--font-header);
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 400;
  }

  .brand-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.58rem, 1.2vw, 0.70rem);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    font-weight: 300;
  }
  .brand-sub::before, .brand-sub::after {
    content: '';
    display: block;
    width: 36px; height: 1px;
    background: rgba(255,255,255,0.30);
  }

  /* ─── COMING SOON ─────────────────────────────────── */
  .coming-soon {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeUp 1.6s 0.4s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

.coming-soon h1 {
    font-family: var(--font-header);
    font-size: clamp(3.4rem, 10vw, 80px);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFFD4;
    line-height: 1.05;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.75);
}

.brand-name{
    max-width: 80%;
    margin: auto;
}.brand-name img{
    width: 100%;
    max-width: 100%;
}


  /* ─── FOOTER ─────────────────────────────────────── */
  .footer-section {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 28px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    animation: fadeUp 1.8s 0.8s ease both;
  }

  .contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 48px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .contact-icon {
    width: 40px; height: 40px;
    border: 1px solid #CCB087;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .contact-icon svg {
    width: 16px; height: 16px;
    stroke: var(--white); fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .contact-text { display: flex; flex-direction: column; gap: 2px; }

  .contact-label {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.48);
  }

  .contact-value {
    font-size: 18px;
    color: var(--white);
    font-weight: 300;
  }

  /* ─── CTA BUTTON ─────────────────────────────────── */
  .cta-btn {
    display: inline-block;
    padding: 14px 44px;
    border: 1px solid var(--gold);
    border-radius: 60px;
    background: rgba(201,169,110,0.10);
    color: #101316;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    background-color: #CCB087;
    transition: background 0.28s, color 0.28s, transform 0.2s;
    backdrop-filter: blur(4px);
  }
  .cta-btn:hover {
    background: var(--gold);
    color: #1a1208;
    transform: translateY(-2px);
  }

  .divider {
    width: 75%;
    height: 1px;
    background: rgba(255,255,255,0.08);
  }

  .footer-bottom {
    font-size: 16px;
    color: #fff;
    text-align: center;
  }
  .footer-bottom a {
    color: #fff;
    text-decoration: none;
  }

  /* ─── MODAL OVERLAY ──────────────────────────────── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,7,12,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .modal-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .modal {
    background: linear-gradient(150deg, #12161f 0%, #0c0f17 100%);
    border: 1px solid rgba(201,169,110,0.22);
    border-radius: 4px;
    width: 100%;
    max-width: 460px;
    padding: 44px 40px 38px;
    position: relative;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), opacity 0.35s ease;
    opacity: 0;
  }

  .modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    color: rgba(255,255,255,0.38);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px 8px;
  }
  .modal-close:hover { color: var(--white); }

  .modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
  }
  .modal-brand svg { width: 30px; height: 30px; }
  .modal-brand-text { display: flex; flex-direction: column; }
  .modal-brand-name {
    font-family: var(--font-header);
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 400;
  }
  .modal-brand-sub {
    font-size: 0.56rem;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
  }

  .modal h2 {
    font-family: var(--font-header);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 6px;
  }

  .modal p.sub {
    font-size: 14px;
    color: #fff;
    margin-bottom: 26px;
    line-height: 1.6;
  }

  .form-group { margin-bottom: 16px; }

  .form-group label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 7px;
  }

  .form-group input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 3px;
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.90rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
  }
  .form-group input::placeholder { color: rgba(255,255,255,0.18); }
  .form-group input:focus {
    border-color: rgba(201,169,110,0.55);
    background: rgba(255,255,255,0.08);
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 60px;
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 0.86rem;
font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.28s, color 0.28s;
  }
  .submit-btn:hover { background: var(--gold); color: #1a1208; }
  .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

  .form-status {
    margin-top: 14px;
    font-size: 0.78rem;
    text-align: center;
    min-height: 20px;
    letter-spacing: 0.03em;
    line-height: 1.5;
  }
  .form-status.success { color: #7ecb94; }
  .form-status.error   { color: #e07070; }

  /* ─── SUCCESS STATE ──────────────────────────────── */
  .success-state {
    text-align: center;
    padding: 20px 0 10px;
    display: none;
  }
  .success-state.show { display: block; }
  .success-icon {
    width: 56px; height: 56px;
    border: 1px solid rgba(126,203,148,0.4);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
  }
  .success-icon svg {
    width: 24px; height: 24px;
    stroke: #7ecb94; fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .success-state h3 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
  }
  .success-state p {
    font-size: 0.80rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.6;
  }

  /* ─── MOBILE ─────────────────────────────────────── */
  @media (max-width: 600px) {
    .brand { padding-top: 20px; }
    .brand-logo { width: 66px; height: 66px; }
    .coming-soon h1 { 
        font-size: clamp(2.5rem, 3vw, 4.5rem);
                position: relative;
        bottom: -110px;
 }
    .contact-row { gap: 18px 24px;         padding-left: 20px;
        padding-right: 20px;}
    .footer-section {  gap: 16px;       padding: 0px !important; }
    .modal { padding: 36px 22px 28px; }
    .footer-bottom{
      font-size: 11px !important;
      padding-bottom: 15px !important;
    }
    .cta-btn{
          padding: 12px 40px !important;
          font-size: 14px !important;
    }
  }

  /* ─── WP ADMIN BAR ───────────────────────────────── */
  body.admin-bar .hero-bg { top: 32px; }
  @media (max-width: 782px) { body.admin-bar .hero-bg { top: 46px; } }

  /* ─── INNER PAGES (non-home templates) ───────────── */
  .page-wrap {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px;
    line-height: 1.7;
  }
  .page-wrap h1, .page-wrap h2, .page-wrap h3 { font-family: var(--font-header); font-weight: 400; margin: 1em 0 .5em; }
  .page-wrap a { color: var(--gold-light); }
  .page-wrap p { margin-bottom: 1em; }
