/* =====================================================
  DERMÉ — DERMATOLOGY CLINIC
===================================================== */

:root {
 --white: #ffffff;
 --ivory: #faf8f4;
 --sand: #eee8df;
 --sand-dark: #ded3c5;

 --sage: #858b79;
 --sage-dark: #626958;

 --gold: #a88662;
 --gold-dark: #816344;

 --deep: #242722;
 --text: #5d6059;
 --muted: #8a8a82;

 --line: rgba(72, 70, 62, 0.13);

 --shadow:
   0 30px 80px rgba(46, 42, 36, 0.10);
}


/* RESET */

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: "Inter", sans-serif;
 background: var(--ivory);
 color: var(--text);
 overflow-x: hidden;
}

img {
 width: 100%;
 display: block;
 object-fit: cover;
}

a {
 text-decoration: none;
 color: inherit;
}

h1,
h2,
h3 {
 font-family: "Cormorant Garamond", serif;
 font-weight: 500;
 color: var(--deep);
}

h1 em,
h2 em {
 color: var(--sage-dark);
 font-weight: 400;
}


/* HEADER */

.header {
 height: 88px;

 position: sticky;
 top: 0;
 z-index: 1000;

 padding: 0 6%;

 display: flex;
 align-items: center;
 justify-content: space-between;

 background: rgba(250,248,244,0.95);
 backdrop-filter: blur(18px);

 border-bottom: 1px solid var(--line);
}

.logo,
.footer-logo {
 display: flex;
 flex-direction: column;
 align-items: center;
}

.logo strong,
.footer-logo strong {
 color: var(--deep);

 font-family: "Cormorant Garamond", serif;
 font-size: 30px;
 font-weight: 500;

 letter-spacing: 0.16em;
 line-height: 0.9;
}

.logo span,
.footer-logo span {
 margin-top: 7px;

 font-size: 7px;
 letter-spacing: 0.35em;
}

.desktop-nav {
 display: flex;
 gap: 34px;
}

.desktop-nav a {
 font-size: 10px;
 font-weight: 500;
}

.desktop-nav a:hover {
 color: var(--sage-dark);
}

.header-btn,
.primary-btn {
 min-height: 48px;

 padding: 0 28px;

 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 16px;

 background: var(--sage-dark);
 color: white;

 border: 1px solid var(--sage-dark);

 font-size: 9px;
 font-weight: 600;
 letter-spacing: 0.13em;

 transition: 0.3s ease;
}

.header-btn:hover,
.primary-btn:hover {
 background: var(--deep);
 border-color: var(--deep);

 transform: translateY(-2px);
}

.menu-toggle {
 width: 42px;
 height: 42px;

 display: none;

 border: 0;
 background: transparent;
}

.menu-toggle span {
 width: 24px;
 height: 1px;

 display: block;

 margin: 6px auto;

 background: var(--deep);
}

.mobile-menu {
 display: none;
}


/* GENERAL */

.eyebrow,
.section-label {
 margin-bottom: 20px;

 color: var(--gold-dark);

 font-size: 9px;
 font-weight: 600;

 letter-spacing: 0.36em;
}

.text-btn {
 padding-bottom: 5px;

 display: inline-flex;
 align-items: center;
 gap: 12px;

 border-bottom: 1px solid var(--gold);

 color: var(--gold-dark);

 font-size: 9px;
 font-weight: 600;
 letter-spacing: 0.13em;
}


/* HERO */

.hero {
 min-height: 720px;

 display: grid;
 grid-template-columns: 47% 53%;

 background: var(--ivory);
}

.hero-copy {
 padding: 95px 8% 55px 13%;

 display: flex;
 flex-direction: column;
 justify-content: center;
}

.hero h1 {
 max-width: 700px;

 font-size: clamp(60px, 5.7vw, 92px);
 line-height: 0.9;
 letter-spacing: -0.035em;
}

.hero-text {
 max-width: 510px;

 margin-top: 30px;

 font-size: 14px;
 line-height: 1.8;
}

.hero-actions {
 margin-top: 35px;

 display: flex;
 gap: 30px;
 align-items: center;
}

.hero-features {
 margin-top: 60px;

 display: grid;
 grid-template-columns: repeat(3,1fr);

 border-top: 1px solid var(--line);
}

.hero-features > div {
 min-height: 105px;

 padding: 24px 12px;

 display: flex;
 flex-direction: column;
 gap: 10px;

 border-right: 1px solid var(--line);
}

.hero-features > div:last-child {
 border-right: 0;
}

.hero-features svg {
 width: 28px;
 height: 28px;

 fill: none;
 stroke: var(--sage-dark);
 stroke-width: 1.2;
}

.hero-features span {
 font-size: 8px;
 line-height: 1.5;

 letter-spacing: 0.1em;
 text-transform: uppercase;
}

.hero-image {
 min-height: 720px;

 position: relative;

 overflow: hidden;
}

.hero-image img {
 height: 100%;
}

.hero-note {
 position: absolute;

 right: 8%;
 bottom: 11%;

 color: white;

 font-family: "Cormorant Garamond", serif;
 font-size: 35px;
 font-style: italic;
 line-height: 1.05;
}


/* SERVICE INTRO */

.service-intro {
 padding: 110px 7% 70px;

 display: grid;
 grid-template-columns: 0.2fr 1fr 0.6fr;
 gap: 50px;
 align-items: end;

 background: white;
}

.intro-number {
 color: var(--sand-dark);

 font-family: "Cormorant Garamond", serif;
 font-size: 100px;
 line-height: 0.7;
}

.intro-heading h2 {
 font-size: clamp(52px,5vw,75px);
 line-height: 0.94;
}

.intro-text {
 max-width: 400px;

 padding-bottom: 10px;

 font-size: 13px;
 line-height: 1.8;
}


/* SERVICES GRID */

.services-grid {
 padding: 0 7% 130px;

 display: grid;
 grid-template-columns: repeat(4,1fr);
 gap: 22px;

 background: white;
}

.service-card {
 overflow: hidden;
}

.service-card.large {
 grid-column: span 2;
}

.service-card.wide {
 grid-column: span 2;
}

.service-image {
 height: 270px;

 overflow: hidden;
}

.service-card.large .service-image,
.service-card.wide .service-image {
 height: 330px;
}

.service-image img {
 height: 100%;

 transition: transform 0.5s ease;
}

.service-card:hover img {
 transform: scale(1.035);
}

.service-card > span {
 display: block;

 margin-top: 20px;

 color: var(--sage-dark);

 font-size: 9px;
 letter-spacing: 0.14em;
}

.service-card h3 {
 margin-top: 7px;

 font-size: 28px;
}

.service-card p {
 max-width: 390px;

 margin-top: 7px;

 font-size: 11px;
 line-height: 1.7;
}

.service-card a {
 display: inline-block;

 margin-top: 17px;

 color: var(--gold-dark);

 font-size: 8px;
 font-weight: 600;
 letter-spacing: 0.12em;
}


/* STORY */

.story {
 min-height: 700px;

 padding: 120px 7%;

 display: grid;
 grid-template-columns: 0.8fr 1.1fr 0.55fr;
 gap: 45px;
 align-items: center;

 background: var(--sand);
}

.story-copy h2 {
 font-size: 62px;
 line-height: 0.93;
}

.story-copy > p:not(.section-label) {
 margin: 28px 0 35px;

 line-height: 1.8;
}

.story-image-main {
 height: 590px;
}

.story-image-main img {
 height: 100%;
}

.story-side img {
 height: 360px;
}

.story-side > div {
 padding-top: 24px;
}

.story-side span {
 color: var(--gold-dark);

 font-size: 8px;
 letter-spacing: 0.24em;
}

.story-side p {
 margin-top: 12px;

 font-family: "Cormorant Garamond", serif;
 font-size: 31px;
 line-height: 1;
}

.story-side em {
 color: var(--sage-dark);
}


/* DIAGNOSTIC */

.diagnostic {
 min-height: 680px;

 display: grid;
 grid-template-columns: 52% 48%;

 background: var(--deep);
}

.diagnostic-image img {
 height: 680px;
}

.diagnostic-copy {
 padding: 85px;

 display: flex;
 flex-direction: column;
 justify-content: center;

 color: rgba(255,255,255,0.73);
}

.chapter {
 margin-bottom: 25px;

 color: rgba(255,255,255,0.16);

 font-family: "Cormorant Garamond", serif;
 font-size: 85px;
}

.diagnostic-copy h2 {
 max-width: 650px;

 color: white;

 font-size: 66px;
 line-height: 0.93;
}

.diagnostic-copy h2 em {
 color: #b9bea8;
}

.diagnostic-copy > p:not(.section-label) {
 max-width: 550px;

 margin-top: 30px;

 font-size: 13px;
 line-height: 1.8;
}

.diagnostic-list {
 margin-top: 45px;

 display: grid;
 grid-template-columns: 1fr 1fr;
}

.diagnostic-list div {
 padding: 22px 15px 22px 0;

 border-top: 1px solid rgba(255,255,255,0.15);
}

.diagnostic-list strong {
 display: block;

 margin-bottom: 7px;

 color: #b9bea8;

 font-family: "Cormorant Garamond", serif;
 font-size: 27px;
 font-weight: 400;
}

.diagnostic-list span {
 font-size: 9px;

 letter-spacing: 0.1em;
 text-transform: uppercase;
}


/* REJUVENATION */

.rejuvenation {
 min-height: 580px;

 display: grid;
 grid-template-columns: 0.85fr 1.15fr;

 background: var(--ivory);
}

.rejuvenation-copy {
 padding: 80px;

 display: flex;
 flex-direction: column;
 justify-content: center;
}

.rejuvenation-copy h2 {
 font-size: 64px;
 line-height: 0.93;
}

.rejuvenation-copy > p:not(.section-label) {
 max-width: 470px;

 margin-top: 30px;

 line-height: 1.8;
}

.rejuvenation-image img {
 height: 580px;
}


/* CLINIC BANNER */

.clinic-banner {
 height: 540px;

 position: relative;

 overflow: hidden;
}

.clinic-banner img {
 height: 100%;
}

.clinic-banner::after {
 content: "";

 position: absolute;
 inset: 0;

 background:
   linear-gradient(
     90deg,
     rgba(31,35,29,0.56),
     transparent 62%
   );
}

.clinic-overlay {
 position: absolute;

 left: 8%;
 top: 50%;
 z-index: 2;

 transform: translateY(-50%);

 color: white;
}

.clinic-overlay > span {
 font-size: 9px;

 letter-spacing: 0.42em;
}

.clinic-overlay h2 {
 margin-top: 18px;

 color: white;

 font-size: 58px;
 line-height: 0.95;
}

.clinic-overlay h2 em {
 color: #d8ddcc;
}


/* VALUES */

.values {
 padding: 100px 7%;

 display: grid;
 grid-template-columns: repeat(4,1fr);

 background: white;
}

.values article {
 padding: 15px 35px;

 border-right: 1px solid var(--line);
}

.values article:last-child {
 border-right: 0;
}

.values article > span {
 color: var(--sage-dark);

 font-family: "Cormorant Garamond", serif;
 font-size: 34px;
}

.values h3 {
 margin: 20px 0 12px;

 font-size: 28px;
}

.values p {
 font-size: 11px;
 line-height: 1.7;
}


/* TESTIMONIAL */

.testimonial {
 min-height: 430px;

 display: grid;
 grid-template-columns: 0.25fr 1fr 0.65fr;

 background: var(--sand);
}

.testimonial-number {
 padding: 70px;

 color: rgba(73,72,64,0.12);

 font-family: "Cormorant Garamond", serif;
 font-size: 100px;
}

.testimonial-content {
 padding: 70px;

 display: flex;
 flex-direction: column;
 justify-content: center;
}

.testimonial-content blockquote {
 max-width: 740px;

 color: var(--deep);

 font-family: "Cormorant Garamond", serif;
 font-size: 40px;
 line-height: 1.12;
}

.testimonial-content > span {
 margin-top: 28px;

 font-size: 10px;
 color: var(--muted);
}

.testimonial-decoration img {
 height: 430px;
}


/* BOOKING */

.booking {
 min-height: 470px;

 display: grid;
 grid-template-columns: 0.9fr 1.15fr 0.8fr;

 background: var(--ivory);
}

.booking-image img {
 height: 470px;
}

.booking-content,
.booking-contact {
 padding: 65px;

 display: flex;
 flex-direction: column;
 justify-content: center;
}

.booking-content h2 {
 font-size: 62px;
 line-height: 0.93;
}

.booking-content > p:not(.section-label) {
 max-width: 480px;

 margin: 25px 0 30px;

 line-height: 1.7;
}

.booking-content .primary-btn {
 align-self: flex-start;
}

.booking-contact {
 background: var(--sage-dark);
 color: white;
}

.booking-contact p {
 margin: 12px 0;

 font-size: 12px;
 line-height: 1.8;
}

.booking-contact strong {
 font-size: 8px;

 letter-spacing: 0.15em;
 text-transform: uppercase;
}


/* FOOTER */

.footer {
 position: relative;

 padding: 55px 7% 25px;

 overflow: hidden;

 background: #f4f0e9;
}

.footer-bg {
 position: absolute;

 right: 0;
 top: 0;

 width: 330px;
 height: 100%;

 opacity: 0.11;
}

.footer-bg img {
 height: 100%;
}

.footer-main {
 position: relative;
 z-index: 2;

 padding-bottom: 35px;

 display: flex;
 align-items: center;
 justify-content: space-between;

 border-bottom: 1px solid var(--line);
}

.footer-main nav,
.socials {
 display: flex;
 gap: 25px;
}

.footer-main nav a,
.socials a {
 font-size: 10px;
}

.footer-bottom {
 position: relative;
 z-index: 2;

 padding-top: 25px;

 display: flex;
 justify-content: space-between;

 color: var(--muted);

 font-size: 9px;
}

.footer-bottom div {
 display: flex;
 gap: 25px;
}


/* RESPONSIVE */

@media (max-width: 1150px) {

 .desktop-nav,
 .header-btn {
   display: none;
 }

 .menu-toggle {
   display: block;
 }

 .mobile-menu {
   position: fixed;

   top: 88px;
   left: 0;
   right: 0;

   z-index: 999;

   padding: 30px 6%;

   display: flex;
   flex-direction: column;
   gap: 18px;

   background: var(--ivory);

   transform: translateY(-140%);
   opacity: 0;

   transition: 0.35s ease;
 }

 .mobile-menu.open {
   transform: translateY(0);
   opacity: 1;
 }

 .mobile-menu a {
   padding-bottom: 14px;

   border-bottom: 1px solid var(--line);

   font-family: "Cormorant Garamond", serif;
   font-size: 24px;
 }

 .hero {
   grid-template-columns: 1fr;
 }

 .hero-image {
   min-height: 600px;
 }

 .service-intro {
   grid-template-columns: 0.2fr 1fr;
 }

 .intro-text {
   grid-column: 2;
 }

 .services-grid {
   grid-template-columns: repeat(2,1fr);
 }

 .story {
   grid-template-columns: 1fr 1fr;
 }

 .story-copy {
   grid-column: 1 / -1;
 }

 .diagnostic,
 .rejuvenation {
   grid-template-columns: 1fr;
 }

 .values {
   grid-template-columns: repeat(2,1fr);
 }

 .booking {
   grid-template-columns: 1fr 1fr;
 }

 .booking-contact {
   grid-column: 1 / -1;
 }
}


@media (max-width: 720px) {

 .header {
   height: 76px;
   padding: 0 22px;
 }

 .mobile-menu {
   top: 76px;
 }

 .hero-copy {
   padding: 75px 25px 50px;
 }

 .hero h1 {
   font-size: 55px;
 }

 .hero-actions {
   flex-direction: column;
   align-items: flex-start;
 }

 .hero-features {
   grid-template-columns: 1fr;
 }

 .hero-features > div {
   border-right: 0;
   border-bottom: 1px solid var(--line);
 }

 .hero-image {
   min-height: 500px;
 }

 .service-intro {
   padding: 80px 25px 50px;

   grid-template-columns: 1fr;
 }

 .intro-number {
   font-size: 70px;
 }

 .intro-text {
   grid-column: auto;
 }

 .services-grid {
   padding: 0 25px 85px;

   grid-template-columns: 1fr;
 }

 .service-card.large,
 .service-card.wide {
   grid-column: auto;
 }

 .service-image,
 .service-card.large .service-image,
 .service-card.wide .service-image {
   height: 390px;
 }

 .story {
   padding: 85px 25px;

   grid-template-columns: 1fr;
 }

 .story-image-main {
   height: 500px;
 }

 .diagnostic-image img,
 .rejuvenation-image img {
   height: 480px;
 }

 .diagnostic-copy,
 .rejuvenation-copy {
   padding: 70px 25px;
 }

 .diagnostic-copy h2,
 .rejuvenation-copy h2 {
   font-size: 49px;
 }

 .diagnostic-list {
   grid-template-columns: 1fr;
 }

 .clinic-banner {
   height: 430px;
 }

 .clinic-overlay h2 {
   font-size: 43px;
 }

 .values {
   padding: 70px 25px;

   grid-template-columns: 1fr;
 }

 .values article {
   padding: 30px 0;

   border-right: 0;
   border-bottom: 1px solid var(--line);
 }

 .testimonial {
   grid-template-columns: 1fr;
 }

 .testimonial-number {
   padding: 45px 25px 0;
 }

 .testimonial-content {
   padding: 45px 25px 65px;
 }

 .testimonial-content blockquote {
   font-size: 34px;
 }

 .testimonial-decoration img {
   height: 380px;
 }

 .booking {
   grid-template-columns: 1fr;
 }

 .booking-image img {
   height: 390px;
 }

 .booking-content,
 .booking-contact {
   padding: 60px 25px;
 }

 .booking-content h2 {
   font-size: 49px;
 }

 .footer-main,
 .footer-bottom {
   flex-direction: column;
   align-items: flex-start;
   gap: 30px;
 }

 .footer-main nav,
 .footer-bottom div {
   flex-wrap: wrap;
 }
}