/* --- Variables & Reset --- */
:root {
    /* Teal & Gold Palette */
    --color-teal-dark: #004d40;     /* Deep, professional base */
    --color-teal-mid: #00695c;      /* Hover states */
    --color-teal-light: #e0f2f1;    /* Background tints */

    --color-gold: #c5a059;          /* Elegant accent */
    --color-gold-dim: #b08d55;      /* Darker gold for text */

    --color-bg-white: #ffffff;
    --color-bg-offwhite: #fcfcfc;

    --color-text-main: #263238;     /* Dark Charcoal */
    --color-text-light: #546e7a;    /* Blue-Grey text */

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;

    --spacing-section: 100px;
    --radius: 8px;

    --shadow-sm: 0 4px 6px rgba(0,77,64,0.05);
    --shadow-md: 0 10px 30px rgba(0,77,64,0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Accessibility: Skip link --- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: var(--color-teal-dark);
    color: white;
    padding: 10px 15px;
    z-index: 1000;
}
.skip-link:focus {
    left: 10px;
}

/* --- Global --- */
body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.7;
    background-color: var(--color-bg-white);
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}


/* Image helper class */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--color-teal-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.narrow-container {
    max-width: 800px;
}

/* --- Utilities --- */
.section-white {
    background-color: var(--color-bg-white);
    padding: var(--spacing-section) 0;
}

.section-light-teal {
    background: linear-gradient(180deg, var(--color-teal-light) 0%, #ffffff 100%);
    padding: var(--spacing-section) 0;
}

.section-dark-teal {
    background-color: var(--color-teal-dark);
    padding: var(--spacing-section) 0;
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
}

.section-title.title-light {
    color: white;
}

/* GSAP reveal baseline */
.js-reveal {
    will-change: transform, opacity;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-teal-dark);
    color: white;
    border: 1px solid var(--color-teal-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-teal-mid);
    border-color: var(--color-teal-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secondary button for hero */
.btn-secondary {
    background: rgba(0,77,64,0.10);
    color: var(--color-teal-dark);
    border: 1px solid rgba(0,77,64,0.28);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(0,77,64,0.16);
    transform: translateY(-2px);
}

/* --- Header --- */
.site-header {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.lawyer-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-teal-dark);
    line-height: 1.1;
}

.lawyer-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold-dim);
    margin-top: 4px;
}

/* --- Header Navigation (ALL links behave like the Contact one) --- */
.site-header nav {
    display: flex;
    gap: 12px;
}

.site-header nav a {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--color-teal-dark);
    background-color: transparent;
    color: var(--color-teal-dark);
}

.site-header nav a:hover {
    background-color: var(--color-teal-dark);
    color: white;
}

/* ---------- HERO UPGRADE ---------- */
.hero-section {
    position: relative;
    padding: 110px 0 120px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,77,64,0.15);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(0.95) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 18% 18%, rgba(0,105,92,0.22), rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.84));
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 680px;
}

.hero-text h1 {
    font-size: 3.4rem;
    line-height: 1.08;
    margin-bottom: 25px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.trust-strip span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(0,77,64,0.10);
    box-shadow: var(--shadow-sm);
}

.hero-portrait {
    display: flex;
    justify-content: flex-end;
}

.hero-portrait-img {
    width: min(340px, 100%);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    border: 5px solid rgba(255,255,255,0.92);
    box-shadow: var(--shadow-md);
}

/* --- Practice Areas --- */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.practice-card {
    background: var(--color-bg-white);
    padding: 40px 30px;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.practice-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-teal-dark);
}

.practice-card p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* --- Why Romania --- */
.info-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.info-row.reverse {
    flex-direction: row-reverse;
}

.info-text { flex: 1; }
.info-text h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--color-teal-dark); }
.info-text p { color: var(--color-text-light); font-size: 1.1rem; }

/* Why Romania: uniform image sizing (single source of truth) */
.info-image{
  flex: 1;
  width: 100%;
  height: 400px;                 /* desktop */
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.info-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* --- About (Portrait Layout) --- */
.about-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 0 0 350px;
    height: 400px;
    position: relative;
}

.portrait-img-round {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 4px solid var(--color-gold);
    box-shadow: var(--shadow-md);
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color: white;
}

/* --- Testimonials (UPDATED) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 60px; /* increased row gap */
    align-items: stretch;
}

/* Equal height cards + accent line */
.testimonial-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: var(--color-bg-offwhite);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--color-teal-mid);
    opacity: 0.85;
}

.testimonial-card blockquote {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-style: italic;
    color: var(--color-teal-dark);
    margin-bottom: 18px;
}

.testimonial-card cite {
    display: block;
    margin-top: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-gold-dim);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Long testimonial visual tightening (no wording changes) */
.testimonial-card--long blockquote {
    max-width: 520px;
    margin: 0 auto 18px auto;
    font-size: 0.98rem;
    line-height: 1.6;
    position: relative;
    padding-left: 28px;
}

.testimonial-card--long blockquote::before {
    content: " ";
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--color-teal-mid);
    opacity: 0.18;
    line-height: 1;
}

/* Video embed (matches card) */
.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FAQ --- */
details.faq-item {
    background: var(--color-bg-white);
    margin-bottom: 20px;
    border: 1px solid rgba(0,77,64,0.1);
    border-radius: var(--radius);
}

summary {
    padding: 25px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-teal-dark);
    list-style: none;
    position: relative;
    transition: color 0.2s;
}

summary:hover {
    color: var(--color-teal-mid);
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 300;
}

details[open] summary::after {
    content: '-';
}

.faq-answer {
    padding: 0 25px 25px 25px;
    color: var(--color-text-light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- Contact --- */
.contact-wrapper {
    display: flex;
    gap: 80px;
}

.contact-info { flex: 1; }

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--color-teal-dark);
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-info p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 40px;
}

.contact-form {
    flex: 1.5;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--color-teal-dark);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.full-width { width: 100%; }

/* Honeypot (hidden) */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Thank you visibility */
#thank-you { display: none; }
#thank-you:target { display: block; }

.thank-you-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 10px;
}

.thank-you-actions {
    text-align: center;
    margin-top: 24px;
}

/* --- Footer --- */
footer {
    background-color: #1a252f;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.legal-small {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 15px;
}

/* --- Responsive --- */
@media (max-width: 900px) {

  /* --- Header: smaller + centered --- */
  .site-header { padding: 8px 0; }

  .header-content{
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }

  .logo{ align-items: center; }
  .lawyer-name{ font-size: 1.15rem; }
  .lawyer-title{ font-size: 0.70rem; }

  /* --- Nav: 2 rows x 3 pills using GRID --- */
  .site-header nav{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .site-header nav a{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 38px;
    padding: 6px 8px;

    font-size: 0.78rem;
    line-height: 1.05;
    text-align: center;

    white-space: normal;
    overflow-wrap: anywhere;

    border-radius: 999px;
    border-width: 1px;
  }

  /* Keep Testimonials on one line only */
  .site-header nav a[href="#testimonials"]{
    white-space: nowrap;
    font-size: 0.74rem;
    padding-left: 6px;
    padding-right: 6px;
  }

  /* --- Hero: fix clipping + real centering on mobile --- */
  .hero-layout{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-section{
    padding: 50px 0 40px 0;
  }

  .hero-text{
    padding: 0 14px;
  }

  .hero-text h1{
    font-size: 2.35rem;
    line-height: 1.05;
    margin: 0 auto 18px auto;
    max-width: 14ch;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .hero-sub{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 60ch;
  }

  .hero-actions{
    justify-content: center;
    width: 100%;
  }

  .trust-strip{
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .trust-strip span{
    width: fit-content;
    max-width: 90%;
    text-align: center;
  }

  .hero-portrait{
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* Why Romania */
  .info-row,
  .info-row.reverse {
    flex-direction: column;
    margin-bottom: 30px;
  }

  /* Why Romania: uniform image sizing on mobile */
.info-image{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
}

.info-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


  /* Practice Areas */
  .practice-grid{ grid-template-columns: 1fr; }
  .practice-card{ padding: 26px 20px; }

  /* About */
  .about-layout{ flex-direction: column; }
  .about-image{ width: 100%; flex: auto; }

  /* Contact */
  .contact-wrapper{ flex-direction: column; gap: 40px; }

  /* Testimonials */
  .testimonial-grid{ grid-template-columns: 1fr; row-gap: 40px; }
}
