/* --- CSS RESET & NORMALIZE --- */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F4EF;
  color: #314960;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,td {
  text-align: left;
  padding: 12px 8px;
}

/* --- CUSTOM VARIABLES & FONTS --- */
:root {
  --color-primary: #314960;
  --color-secondary: #EDA984;
  --color-accent: #F6F4EF;
  --color-electric1: #00d3e0;
  --color-electric2: #ff1ead;
  --color-electric3: #fbe52f;
  --color-neutral-dark: #243046;
  --color-neutral-light: #fafbfc;
  --color-btn-text: #fff;
  --shadow-card: 0 4px 24px rgba(49,73,96,0.07),0 1.5px 4px 0 rgba(237,169,132,0.07);
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 32px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --header-height: 70px;
}
@media (max-width: 768px) {
  :root { --header-height: 60px; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
h1 { font-size: 2.2em; line-height: 1.13; margin-bottom: 24px; }
h2 { font-size: 1.4em; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.1em; line-height: 1.2; margin-bottom: 14px; }
h4 { font-size: 1em; line-height: 1.2; margin-bottom: 10px; }
@media (min-width: 992px) {
  h1 { font-size: 3em; }
  h2 { font-size: 2em; }
  h3 { font-size: 1.35em; }
}
p, li, address, span, td, th {
  font-family: var(--font-body);
  font-size: 1em;
  line-height: 1.6;
  color: var(--color-neutral-dark);
}
.subheadline {
  font-size: 1.15em;
  color: var(--color-secondary);
  margin-bottom: 18px;
  font-weight: 600;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
em {
  color: var(--color-electric2);
  font-style: italic;
}

/* --- CONTAINERS & BASIC LAYOUT --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
/* Extra utility for two-column alignment on large screens (not grid) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* --- BUTTONS --- */
.btn-primary {
  background: linear-gradient(90deg, var(--color-electric1) 0%, var(--color-secondary) 100%);
  color: var(--color-btn-text);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1em;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: var(--radius-sm);
  letter-spacing: 1.5px;
  border: none;
  box-shadow: 0 4px 24px rgba(49, 73, 96, 0.14);
  cursor: pointer;
  transition: background .18s cubic-bezier(.4,0,.2,1), box-shadow .2s;
  margin-top: 14px;
  outline: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#fff3 10%,#00ffd466 90%);
  opacity: 0;
  transition: opacity 0.24s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--color-secondary) 10%, var(--color-electric2) 90%);
  box-shadow: 0 6px 24px 1px var(--color-electric2), 0 1.5px 6px 0 var(--color-electric1);
}
.btn-primary:hover::after, .btn-primary:focus::after {
  opacity: 1;
}

/* --- NAVIGATION --- */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(49, 73, 96, .06);
  position: sticky; top: 0; z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  width: 100%;
  gap: 30px;
}
.main-nav > a img {
  height: 44px;
  min-width: 120px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 18px;
}
.main-nav li a {
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  padding: 7px 10px;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.main-nav li a:hover,.main-nav li a:focus {
  background: var(--color-electric1);
  color: #fff;
}
.main-nav .btn-primary {
  margin-left: 28px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: var(--color-electric2);
  color: #fff;
  font-size: 2.1em;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  margin-left: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255,30,173,0.10);
  transition: background 0.18s;
  z-index: 102;
}
.mobile-menu-toggle:active {
  background: var(--color-electric1);
}
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
}
/* Hide desktop nav on mobile */
@media (max-width: 1024px) {
  .main-nav ul,
  .main-nav .btn-primary {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg,var(--color-electric1) 0%,var(--color-secondary) 100%);
  z-index: 120;
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.45,0,.19,1) 0s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 2.3em;
  color: #fff;
  background: none;
  border: none;
  z-index: 125;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.mobile-menu-close:active, .mobile-menu-close:hover {
  background: var(--color-electric2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  margin-top: 68px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: .8px;
  border-radius: 12px;
  padding: 14px 0;
  width: 86vw;
  text-align: center;
  background: rgba(255,255,255,0.07);
  transition: background .18s, color .15s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-electric3);
  background: rgba(0,211,224,0.17);
}

/* --- MAIN SECTIONS AND SPACING --- */
main {
  flex: 1 0 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    padding: 30px 7px 30px 7px;
    margin-bottom: 34px;
  }
}

/* --- CARDS, FEATURE, TESTIMONIAL --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-icons {
  display: flex;
  gap: 26px;
  margin-top: 10px;
  align-items: center;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(49,73,96,0.11);
  margin-bottom: 28px;
  font-size: 1.1em;
  color: var(--color-neutral-dark);
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.13em;
  font-weight: 600;
  color: var(--color-electric2);
  margin-bottom: 3px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.97em;
  font-style: normal;
  letter-spacing: .1px;
  display: block;
}
.testimonial-card strong {
  color: var(--color-electric1);
  font-family: var(--font-display);
  font-size: 1em;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
  overflow: hidden;
  font-size: 1em;
}
thead {
  background: var(--color-electric1);
  color: #fff;
}
tbody tr:nth-child(even) {
  background: var(--color-accent);
}
td, th {
  border-bottom: 1px solid #e8eaef;
  font-size: 1em;
}
tr:last-child td {
  border-bottom: 0;
}

/* --- FOOTERS --- */
footer {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  font-family: var(--font-body);
  letter-spacing: .4px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 0 24px 0;
}
.footer-main img {
  height: 56px;
  min-width: 56px;
  margin-right: 14px;
}
.footer-links {
  flex: 1 0 210px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 7px;
}
.footer-links a {
  color: #fff;
  text-decoration: underline;
  transition: color .16s;
  font-weight: 500;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-electric3);
}
.footer-info {
  font-size: 0.96em;
  color: #fff;
  line-height: 1.5;
}
.footer-info a {
  color: var(--color-electric1);
  text-decoration: underline;
  font-weight: 600;
}
.social-links {
  min-width: 30px;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* --- FORMATS & UTILITY --- */
ul {
  margin-bottom: 10px;
  padding-left: 0;
}
ul li, .text-section ul li {
  padding-left: 0;
  margin-bottom: 8px;
  position: relative;
  font-size: 1.07em;
}
ul li strong, .text-section ul li strong {
  font-weight: 700;
  color: var(--color-electric2);
}
.text-section ul li::before {
  content: '●';
  color: var(--color-electric1);
  margin-right: 7px;
  font-size: 1.2em;
  top: 0.1em;
  position: relative;
}
address {
  margin: 16px 0 18px 0;
  font-style: normal;
  color: var(--color-primary);
}

/* --- GALLERY COLORS PREVIEW --- */
.text-section span[style*="color"] {
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 6px;
  margin: 0 2px;
  font-size: .99em;
}

/* --- APPOINTMENT CTA --- */
.appointment-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  align-items: flex-start;
}
.appointment-cta .btn-primary {
  margin-top: 0;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
  .container{ padding: 0 12px; }
}
@media (max-width: 768px) {
  .main-nav > a img { height: 35px; min-width: 85px; }
  .main-nav { gap: 8px; }
  .content-wrapper, .text-section { gap: 14px; }
  h1 { font-size: 1.37em; }
  h2 { font-size: 1.14em; }
}

/* --- ANIMATIONS --- */
@keyframes vibrate {
  0% { transform: scale(1) rotate(-1.5deg); }
  50% { transform: scale(1.03) rotate(1.5deg); }
  100% { transform: scale(1) rotate(-1.5deg); }
}
.btn-primary:active {
  animation: vibrate 0.18s linear 1;
}

/* --- HOVER ANIMATIONS FOR CARDS & FEATURES --- */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover, .testimonial-card:hover, .feature-item:hover {
  box-shadow: 0 8px 28px rgba(49,73,96,0.22),0 1.5px 8px 0 rgba(237,169,132,0.09);
  transform: translateY(-3px) scale(1.015);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1999;
  background: linear-gradient(90deg, var(--color-primary) 40%, var(--color-secondary) 100%);
  color: #fff;
  box-shadow: 0 -2px 22px 0 rgba(49, 73, 96, 0.10);
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1em;
  transition: transform .36s cubic-bezier(.68,0,.27,1);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner .cookie-text {
  flex: 3 1 180px;
  color: #fff;
  line-height: 1.6;
  font-size: 1.04em;
}
.cookie-consent-banner .cookie-actions {
  flex: 1 1 160px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-consent-banner .cookie-btn {
  font-family: var(--font-body);
  font-size: 1em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  margin: 0 3px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .19s;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
.cookie-consent-banner .cookie-btn.accept {
  background: var(--color-electric1);
  color: #fff;
}
.cookie-consent-banner .cookie-btn.reject {
  background: var(--color-electric2);
  color: #fff;
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--color-electric3);
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-btn:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2111;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(49,73,96,0.39);
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  display: flex;
  animation: fadeinModal 0.43s cubic-bezier(.6,0,.5,1);
}
@keyframes fadeinModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 5px 42px 0 rgba(49,73,96,0.26);
  width: 95vw; max-width: 425px;
  padding: 34px 18px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 21px;
  position: relative;
  animation: modalSlideIn .41s cubic-bezier(.66,-0.1,.32,1.01);
}
@keyframes modalSlideIn {
  0% { transform: translateY(30px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 19px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e2e6ee;
  font-size: 1em;
  font-family: var(--font-body);
  color: var(--color-primary);
}
.cookie-category:last-child{
  border-bottom: none;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #e2e6ee;
  outline: none;
  border-radius: 12px;
  position: relative;
  transition: background .16s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-electric1);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .14s;
  box-shadow: 0 1px 3px #9993;
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
  background: var(--color-electric2);
}
.cookie-modal-content h2, .cookie-modal-content h3 {
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-footer .cookie-btn {
  min-width: 100px;
}

/* --- Z-INDEX SUPPORTS --- */
.mobile-menu, .cookie-modal { z-index: 1201; }
.cookie-modal { z-index: 1998; }
.cookie-consent-banner { z-index: 2999; }
header { z-index: 99; }

/* --- SCROLLBAR THEME --- */
::-webkit-scrollbar {
  width: 9px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* --- MICRO-INTERACTIONS --- */
a, button, .btn-primary { transition: color .13s, background .18s, box-shadow .17s; outline: none; }
a:focus, button:focus, .btn-primary:focus { box-shadow: 0 0 0 3px var(--color-electric1); }

/* --- MISC UTILITY --- */
.hide { display: none !important; }

/* Ensure minimum spacing between all content blocks */
section, .section, .card, .testimonial-card, .content-wrapper, .feature-item, .text-section, .footer-main, .cookie-consent-banner {
  margin-bottom: 20px;
}
section:last-child, .section:last-child, .footer-main:last-child, .cookie-consent-banner:last-child {
  margin-bottom: 0;
}

/* Prevent overlap - guarantee enough margin on all flex-wrap containers */
.card-container, .content-grid, .footer-main {
  gap: 24px;
}

/* --- END --- */
