/* ============================================================
   Tamilnadu Artist Association — Oviyargal Sangam
   Premium light theme · warm ivory canvas + terracotta orange
   ============================================================ */

:root{
  /* -- palette -- */
  --canvas:        #FFFDF9;   /* page background — warm white, like gallery wall */
  --canvas-alt:     #FBF3E9;  /* soft ivory panel */
  --paper:          #FFFFFF;  /* card surface */
  --ink:            #2A1D14;  /* near-black warm ink for headings */
  --ink-soft:       #6B584A;  /* muted body text */
  --line:           #EBDFCF;  /* hairline borders */

  --orange:         #D9591A;  /* primary — terracotta/burnt orange */
  --orange-deep:    #A83E10;  /* pressed / dark accent */
  --orange-bright:  #F0762A;  /* hover / highlight */
  --orange-wash:    #FCE8D6;  /* pale tint background */
  --gold:           #B4842A;  /* award / badge accent */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-eyebrow: 'Cinzel', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(42,29,20,0.06);
  --shadow-md: 0 10px 30px rgba(42,29,20,0.10);
  --shadow-lg: 0 20px 55px rgba(168,62,16,0.14);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* subtle canvas grain — gives the "painted" feel without an image asset */
body::before{
  content:"";
  position: fixed; inset:0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(217,89,26,0.035) 0, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(180,132,42,0.035) 0, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

section{ position: relative; z-index: 1; padding: 100px 8vw; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar{
  position: sticky; top:0; z-index: 100;
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(255,253,249,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.nav-logo{
  width: 70px; height: 70px; object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--orange);
  box-shadow: var(--shadow-sm);
}
.nav-title{ display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.nav-title span:first-child{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  white-space: nowrap;
}

.nav-title span:last-child{
    font-family: var(--font-body);
    font-size:0.82rem;
    font-weight:700;
    color:var(--orange-deep);
    letter-spacing:0;
    white-space:nowrap;
}

.nav-links{
  display:flex; align-items:center; gap: 32px;
  list-style:none; margin:0; padding:0;
  flex: 1; justify-content: center;
}
.nav-links a{
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px;
  width:0; height:2px; background: var(--orange);
  transition: width 0.25s ease;
}
.nav-links a:hover{ color: var(--orange-deep); }
.nav-links a:hover::after{ width:100%; }

/* Mobile-only Follow Us row inside the menu — hidden on desktop */
.nav-links-fb{ display:none; }
.nav-fb-inline{
  display:flex; align-items:center; gap:8px;
  color: var(--ink-soft) !important;
  font-size: 0.88rem; font-weight: 500;
}
.nav-fb-inline svg{ fill: var(--orange); }
.nav-fb-inline:hover{ color: var(--orange-deep) !important; }

/* Desktop standalone pill button */
.nav-fb{
  display:flex; align-items:center; gap:8px;
  background: var(--orange);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-fb svg path{ fill:#fff; }
.nav-fb:hover{ background: var(--orange-deep); transform: translateY(-1px); }

.hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.hamburger span{
    width:25px;
    height:3px;
    background:var(--ink);
    transition:.3s;
}

/* ============================================================
   MOBILE NAVBAR
   ============================================================ */
@media (max-width:860px){

    #navbar{
        position: sticky;
        padding:12px 5vw;
    }

    .nav-brand{
        flex:1;
        min-width:0;
        order:1;
    }

    .nav-title span:first-child{
    font-size:1rem;
    font-weight:800;
}

.nav-title span:last-child{
    font-size:.72rem;
    font-weight:700;
}

    .nav-logo{
        width:55px;
        height:55px;
    }

    .hamburger{
        display:flex;
        order:2;
    }

    /* Hide the desktop standalone button on mobile */
    .nav-fb{
        display:none;
    }

    /* Dropdown panel — pulled OUT of the flex row so it can never
       push or hide the logo/hamburger. Always full width, below navbar. */
    .nav-links{
        display:none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
        padding:20px 5vw;
        background:var(--canvas);
        border-top:1px solid var(--line);
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 100%);
        overflow-y: auto;
    }

    .nav-links.active{
        display:flex;
    }

    /* Show Follow Us as the last row in the mobile menu, after Contact */
    .nav-links-fb{
        display:flex;
        width:100%;
        padding-top:14px;
        margin-top:4px;
        border-top:1px solid var(--line);
    }

    .hamburger.active span:nth-child(1){
        transform:rotate(45deg) translateY(11px);
    }

    .hamburger.active span:nth-child(2){
        opacity:0;
    }

    .hamburger.active span:nth-child(3){
        transform:rotate(-45deg) translateY(-11px);
    }
}
/* ============================================================
   HERO
   ============================================================ */
#home{
  position: relative;
  padding: 0;
  min-height: 92vh;
  display:flex; align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(ellipse 60% 55% at 85% 15%, var(--orange-wash) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 5% 90%, #F5E8D8 0%, transparent 55%),
    var(--canvas);
}
.hero-content{
  display:grid; grid-template-columns: 1.15fr 1fr; gap: 60px;
  align-items:center;
  width:100%; padding: 90px 8vw 70px;
}

.hero-badge{
  display:inline-block;
  font-family: var(--font-eyebrow);
  font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--orange-deep);
  background: var(--orange-wash);
  border: 1px solid #F0C79A;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-h1{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 18px;
}

.hero-sub{
  font-size: 1.2rem; font-weight: 500;
  color: var(--orange-deep);
  margin: 0 0 6px;
}

.hero-tamil{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 14px;
}

.hero-reg{
  font-size: 0.82rem; color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  max-width: 460px;
}

.hero-desc{
  font-size: 1rem; color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 34px;
}

.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; }

.btn-primary, .btn-outline{
  display:inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.92rem; font-weight: 600;
  transition: all 0.25s ease;
}
.btn-primary{
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover{ background: var(--orange-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline{
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover{ border-color: var(--orange); color: var(--orange-deep); background: var(--orange-wash); }

.hero-visual{ position: relative; }
.hero-frame{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 10px solid var(--paper);
  outline: 1px solid var(--line);
}
.hero-img{ width:100%; height: 460px; object-fit: cover; }

.hero-logo-badge{
  position:absolute; top: -22px; left: -22px;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--orange);
  padding: 8px;
  box-shadow: var(--shadow-md);
}
.hero-logo-badge img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }

.hero-stat{
  position:absolute; bottom: -22px; right: 24px;
  background: var(--orange);
  color:#fff;
  padding: 16px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align:center;
}
.stat-num{ font-family: var(--font-display); font-size: 1.6rem; font-weight:700; line-height:1; }
.stat-label{ font-size: 0.6rem; letter-spacing: 0.1em; opacity:0.9; margin-top:4px; }

@media (max-width: 900px){
  .hero-content{ grid-template-columns: 1fr; padding-top: 60px; }
  .hero-img{ height: 320px; }
  .hero-visual{ margin-top: 40px; }
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.sec-header{ max-width: 680px; margin: 0 auto 60px; text-align:center; }
.sec-eyebrow{
  font-family: var(--font-eyebrow);
  font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--orange-deep);
  margin-bottom: 10px;
}
.sec-title{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.divider{
  width: 70px; height: 3px; margin: 0 auto 20px;
  background: var(--orange);
  border-radius: 2px;
  position: relative;
}
.divider::after{
  content:""; position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%) rotate(45deg);
  width:9px; height:9px; background: var(--gold);
}
.sec-desc{ color: var(--ink-soft); font-size: 1.02rem; }

/* ============================================================
   ABOUT
   ============================================================ */
#about{ background: var(--canvas-alt); }
.about-grid{
  display:grid; grid-template-columns: 1fr 1.15fr; gap: 70px;
  align-items:center; max-width: 1180px; margin: 0 auto;
}
.about-img-wrap{ position: relative; }
.about-img-main{
  width:100%; height: 440px; object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--paper);
}
.about-img-accent{
  position:absolute; bottom:-36px; left:-36px;
  width: 190px; height: 150px; object-fit:fill;
  border-radius: 8px;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
}
.a-h2{
  font-family: var(--font-display);
  font-size: 2rem; font-weight:700; color: var(--ink);
  margin: 0 0 4px;
}
.a-tamil{
  font-family: var(--font-display); font-style: italic;
  color: var(--orange-deep); font-size: 1.1rem;
  margin: 0 0 20px;
}
.about-text p{ color: var(--ink-soft); margin-bottom: 16px; }

.feats{ display:flex; flex-direction:column; gap: 22px; margin-top: 28px; }
.feat{ display:flex; gap: 16px; align-items:flex-start; }
.feat-icon{
  flex-shrink:0; width: 46px; height:46px;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.3rem;
  background: var(--orange-wash);
  border: 1px solid #F0C79A;
  border-radius: 12px;
}
.feat-text h4{ margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.feat-text p{ margin:0; font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; gap: 60px; }
  .about-img-accent{ width: 140px; height: 110px; bottom:-24px; left:-16px; }
}

/* ============================================================
   GALLERY — framed like paintings on a wall
   ============================================================ */
.gal-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
  max-width: 1200px; margin: 0 auto;
}
.gal-item{
  position: relative;
  background: var(--paper);
  padding: 14px 14px 60px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gal-item:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gal-item img{
  width:100%; height: 240px; object-fit: cover;
  border-radius: 2px;
}
.gal-border{
  position:absolute; inset: 14px 14px 42px;
  border: 1px solid var(--orange-wash);
  pointer-events:none;
}
.gal-ov{
  position:absolute; left:14px; right:14px; bottom:12px;
  font-family: var(--font-display); font-style: italic;
  font-size: 0.82rem; color: var(--ink-soft);
  text-align:center;
}

@media (max-width: 960px){ .gal-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .gal-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   LEADERSHIP
   ============================================================ */
#leadership{ background: var(--canvas-alt); }
.lead-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1200px; margin:0 auto;
}
.lead-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow:hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.lead-card:hover{ box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.lead-card.fw{ grid-column: 1 / -1; }
.lead-card.fw .lead-inner{ flex-direction: row; align-items: stretch; }
.lead-card.fw .lead-photo{ width: 240px; height: auto; flex-shrink:0; }

.lead-inner{ display:flex; flex-direction:column; height:100%; }
.lead-photo{
  width:100%; height: 260px; object-fit: cover;
  border-bottom: 3px solid var(--orange);
}
.lead-photo.logo-card{ object-fit: contain; background: var(--orange-wash); padding: 30px; }

.lead-info{ padding: 26px; }
.lead-info h3{
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--ink); margin: 0 0 4px;
}
.lead-role{ color: var(--orange-deep); font-size: 0.85rem; font-weight:600; margin: 0 0 10px; }
.lead-award{
  display:inline-block;
  font-size: 0.7rem; font-weight:600; letter-spacing:0.03em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.lead-info p{ color: var(--ink-soft); font-size: 0.92rem; margin:0; }

@media (max-width: 860px){
  .lead-grid{ grid-template-columns: 1fr; }
  .lead-card.fw .lead-inner{ flex-direction: column; }
  .lead-card.fw .lead-photo{ width:100%; height: 260px; }
}

/* ============================================================
   SCROLL REVEAL (pure CSS fallback — no JS required)
   ============================================================ */
.reveal{
  animation: rise 0.8s ease both;
}
@keyframes rise{
  from{ opacity:0; transform: translateY(24px); }
  to{ opacity:1; transform: translateY(0); }
}
.gal-grid .gal-item:nth-child(1){ animation-delay: 0.05s; }
.gal-grid .gal-item:nth-child(2){ animation-delay: 0.15s; }
.gal-grid .gal-item:nth-child(3){ animation-delay: 0.25s; }
.gal-grid .gal-item:nth-child(4){ animation-delay: 0.35s; }
.gal-grid .gal-item:nth-child(5){ animation-delay: 0.45s; }
.gal-grid .gal-item:nth-child(6){ animation-delay: 0.55s; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
#contact{
  padding: 0;
  background: var(--ink);
  color: #F3E9DC;
}

.contact-top{
  display:grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 8vw 56px;
  border-bottom: 1px solid rgba(243,233,220,0.12);
}

.contact-brand{ display:flex; gap: 18px; align-items:flex-start; }
.contact-logo{
  width: 74px; height: 74px; object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--orange);
  flex-shrink: 0;
  background-color: #FBF3E9;
  
}
.contact-brand h3{
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight:700;
  color: #fff; margin: 2px 0 6px;
}
.contact-tamil{
  font-family: var(--font-display); font-style: italic;
  color: var(--orange-bright);
  font-size: 1rem; margin: 0 0 6px;
}
.contact-reg{
  font-size: 0.8rem; color: rgba(243,233,220,0.6); margin:0;
}

.contact-col h4{
  font-family: var(--font-eyebrow);
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--orange-bright);
  margin: 6px 0 18px;
}
.contact-col{ display:flex; flex-direction:column; }
.contact-line{
  display:flex; align-items:center; gap: 10px;
  font-size: 0.9rem;
  color: rgba(243,233,220,0.85);
  margin-bottom: 14px;
  transition: color 0.2s ease;
}
.contact-line svg{ flex-shrink:0; color: var(--orange-bright); }
a.contact-line:hover{ color: #fff; }
.contact-static {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact-static:hover {
    color: #d4af37;
}

.contact-static span {
    line-height: 1.6;
}
.contact-note{
  font-size: 0.74rem; font-style: italic;
  color: rgba(243,233,220,0.45);
  margin-top: 4px; max-width: 240px;
}
.contact-col a:not(.contact-line){
  font-size: 0.9rem;
  color: rgba(243,233,220,0.85);
  margin-bottom: 12px;
  width: fit-content;
  transition: color 0.2s ease;
}
.contact-col a:not(.contact-line):hover{ color: var(--orange-bright); }

.contact-bottom{
  max-width: 1200px; margin: 0 auto;
  padding: 22px 8vw 30px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 8px;
  font-size: 0.8rem;
  color: rgba(243,233,220,0.55);
}

@media (max-width: 900px){
  .contact-top{ grid-template-columns: 1fr 1fr; }
  .contact-brand{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .contact-top{ grid-template-columns: 1fr; gap: 36px; padding: 60px 6vw 40px; }
  .contact-bottom{ flex-direction: column; padding: 20px 6vw 26px; }
}

/* ============================================================
   RESPONSIVE — general
   ============================================================ */
@media (max-width: 640px){
  section{ padding: 70px 6vw; }
  .hero-content{ padding: 60px 6vw 50px; }
}


.lead-grid{
    display:grid;
    grid-template-columns:repeat(12,1fr);
    gap:30px;
}

/* First card */
.lead-card.fw{
    grid-column:span 12;
}

/* Last two cards - wider */
.lead-card.lead-wide{
    grid-column:span 6;
    min-height:340px;
}

.lead-card.lead-wide .lead-inner{
    padding:40px;
    display:flex;
    align-items:center;
    gap:30px;
}

.lead-card.lead-wide .lead-photo{
    width:150px;
    height:150px;
    flex-shrink:0;
    object-fit: fill;
}

.lead-card.lead-wide .lead-info h3{
    font-size:30px;
}

.lead-card.lead-wide .lead-info p{
    font-size:17px;
    line-height:1.8;
}

@media (max-width:900px){
    .lead-card.fw,
    .lead-card.lead-wide{
        grid-column:span 12;
    }
}

.lead-gallery{
    max-width:1200px;
    margin:40px auto 0;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.lead-gallery-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--line);
    box-shadow:var(--shadow-md);
}

.lead-gallery-card img{
    width:100%;
    display:block;
    object-fit:contain;
}

@media (max-width:768px){

    .lead-gallery{
        grid-template-columns:1fr;
    }

}